package android.ijiajiao.dao;


import java.util.ArrayList;

import javax.servlet.http.Part;

import net.sf.json.JSONObject;

public interface UserDao {
	// 判断用户名是否可用
	public boolean RegisterName(String name);

	// 判断email是否可用
	public boolean RegisterEmail(String email);

	// 注册
	public boolean Register(String name, String email, String pass, String status);

    //登陆
	public JSONObject Login(String email, String pass);
	
	//找回密码
	public boolean FindPass(String email);
	
	//修改用户头像
	public ArrayList<Object> motifyUserImg(String name,Part part,String path);
	
	//修改用户资料
	public ArrayList<Object> motifyUserData(String name,String sex,int age,String phone,String qq,String adr);
	
	//修改密码
	public boolean motifyPass(String name,String pass,String passed);
	
	//用户资料
	public ArrayList<Object> userData(String name);
}
